Optimal. Leaf size=83 \[ \frac {2^{-3-n} (-i \text {ArcCos}(a x))^{-n} \text {ArcCos}(a x)^n \text {Gamma}(1+n,-2 i \text {ArcCos}(a x))}{a^2}+\frac {2^{-3-n} (i \text {ArcCos}(a x))^{-n} \text {ArcCos}(a x)^n \text {Gamma}(1+n,2 i \text {ArcCos}(a x))}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {4732, 4491, 12,
3389, 2212} \begin {gather*} \frac {2^{-n-3} \text {ArcCos}(a x)^n (-i \text {ArcCos}(a x))^{-n} \text {Gamma}(n+1,-2 i \text {ArcCos}(a x))}{a^2}+\frac {2^{-n-3} (i \text {ArcCos}(a x))^{-n} \text {ArcCos}(a x)^n \text {Gamma}(n+1,2 i \text {ArcCos}(a x))}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2212
Rule 3389
Rule 4491
Rule 4732
Rubi steps
\begin {align*} \int x \cos ^{-1}(a x)^n \, dx &=-\frac {\text {Subst}\left (\int x^n \cos (x) \sin (x) \, dx,x,\cos ^{-1}(a x)\right )}{a^2}\\ &=-\frac {\text {Subst}\left (\int \frac {1}{2} x^n \sin (2 x) \, dx,x,\cos ^{-1}(a x)\right )}{a^2}\\ &=-\frac {\text {Subst}\left (\int x^n \sin (2 x) \, dx,x,\cos ^{-1}(a x)\right )}{2 a^2}\\ &=-\frac {i \text {Subst}\left (\int e^{-2 i x} x^n \, dx,x,\cos ^{-1}(a x)\right )}{4 a^2}+\frac {i \text {Subst}\left (\int e^{2 i x} x^n \, dx,x,\cos ^{-1}(a x)\right )}{4 a^2}\\ &=\frac {2^{-3-n} \left (-i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \Gamma \left (1+n,-2 i \cos ^{-1}(a x)\right )}{a^2}+\frac {2^{-3-n} \left (i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \Gamma \left (1+n,2 i \cos ^{-1}(a x)\right )}{a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 74, normalized size = 0.89 \begin {gather*} \frac {2^{-3-n} \text {ArcCos}(a x)^n \left (\text {ArcCos}(a x)^2\right )^{-n} \left ((i \text {ArcCos}(a x))^n \text {Gamma}(1+n,-2 i \text {ArcCos}(a x))+(-i \text {ArcCos}(a x))^n \text {Gamma}(1+n,2 i \text {ArcCos}(a x))\right )}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.26, size = 138, normalized size = 1.66
method | result | size |
default | \(-\frac {\sqrt {\pi }\, \left (\frac {2 \arccos \left (a x \right )^{1+n} \sin \left (2 \arccos \left (a x \right )\right )}{\sqrt {\pi }\, \left (2+n \right )}-\frac {2^{\frac {1}{2}-n} \sqrt {\arccos \left (a x \right )}\, \LommelS 1 \left (n +\frac {3}{2}, \frac {3}{2}, 2 \arccos \left (a x \right )\right ) \sin \left (2 \arccos \left (a x \right )\right )}{\sqrt {\pi }\, \left (2+n \right )}-\frac {3 \,2^{-\frac {3}{2}-n} \left (\frac {4}{3}+\frac {2 n}{3}\right ) \left (2 \arccos \left (a x \right ) \cos \left (2 \arccos \left (a x \right )\right )-\sin \left (2 \arccos \left (a x \right )\right )\right ) \LommelS 1 \left (n +\frac {1}{2}, \frac {1}{2}, 2 \arccos \left (a x \right )\right )}{\sqrt {\pi }\, \left (2+n \right ) \sqrt {\arccos \left (a x \right )}}\right )}{4 a^{2}}\) | \(138\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \operatorname {acos}^{n}{\left (a x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x\,{\mathrm {acos}\left (a\,x\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________